﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace YL.Core.Entity
{
    [SugarTable("Meter_DeviceStatusHistory")]
    public class DeviceStatusHistory
    {
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public int HistoryId { set; get; }
        /// <summary>
        /// 标识符
        /// </summary>
        public int DeviceId { set; get; }
        /// <summary>
        /// 设备状态
        /// </summary>
        public bool Status { set; get; }
        /// <summary>
        /// 最近一次上线时间
        /// </summary>
        public DateTime CreateDate { set; get; }
        /// <summary>
        /// 设备当前ip
        /// </summary>
        public string ClientIp { set; get; }
    }
}
